<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/competition-common :: common_head(~{::link},~{::script})">
    <meta charset="utf-8">
    <link rel="stylesheet" href="/styles/mall/index.css">
    <script src="/javascript/mall/index.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
</head>
<body>
<div th:replace="common/competition-common::mall-header"></div>
<div th:replace="common/competition-common::competition-sidebar"></div>
<div class="mall-body" style="margin-right: 50px">
    <div class="pagetitle">
        <h1>我的赛事</h1>
    </div>
    <section class="section">
        <div class="row align-items-top">
            <div class="col-lg-4" th:each="competitions:${competitionsDTOS}">

                    <div class="card">
                        <a th:href="${'/competition/competition-details?comId=' + competitions.getComid()}">
                            <img th:src="${competitions.getEventpictures()}" width="410" height="240"  class="goods-image"/>
                        </a>
                        <div class="card-body">
                            <img  class="card-title" th:src="${competitions.getComlogo()}" width="70" height="70"/>
                            <h5 th:text="${competitions.getComname()}" ></h5>
                            <p class="card-text" th:text="${competitions.getComprofile() }"></p>
                        </div>
                    </div>

            </div>
            <div class="col-lg-4">
                <!-- Card with an image on top -->
                <a id="create-competition" href="/competition/addCompetition">
                    <div class="card">
                        <img src="/images/新增.png" class="card-img-top" alt="..."   width="240" height="350">
                    </div><!-- End Card with an image on top -->
                </a>
            </div>
        </div>
    </section>
</div>
<div th:replace="common/competition-common::mall-footerWithoutsidebar"></div>
</body>
</html>